package com.han.builder.demo1;

/**
 * @ClassName MobileBuilder
 * @Description 具体的构建者，构建摩拜单车对象
 * @Author duoduo Han
 * @Date 2024/6/5 18:40
 */
public class MobileBuilder extends Builder {
    @Override
    public void buildFrame() {
        bike.setFrame("碳纤维车架");
    }

    @Override
    public void buildSeat() {
        bike.setSeat("真皮车座");
    }

    @Override
    public void buildWheel() {
        bike.setWheel("铝合金轮子");
    }

    @Override
    public Bike createBike() {
        return bike;
    }
}
